"use strict"
const webpack = require('webpack');
const modName="jsajc";
const tsLoaderPlugin = require('ts-loader'); 
module.exports = {
    entry: "./src/index.ts",
    //mode:"production",
    mode:'development',
    output: {
        filename: `./dist/${modName}.js`,
        library:modName,
        libraryTarget:'umd',
        umdNamedDefine:true
    },
    resolve: {
        // Add '.ts' and '.tsx' as a resolvable extension.
        extensions: ["", ".webpack.js", ".web.js", ".ts", ".tsx", ".js"]
    },
    module: {
        rules: [
            // all files with a '.ts' or '.tsx' extension will be handled by 'ts-loader'
            { test: /\.tsx?$/, loader: "ts-loader" }
          ]
    }
};